@extends('home.layouts.app')

@section('title', $category['name'].'-'.config('site.title'))

@section('description', '')

@section('body')
    <div class="a1000x1 clearfix">
        @include('home.layouts.list_right')
        <div class="neirong">
            <div class="h1">
                <span><a href="/">网站首页</a> &gt; <a href="{{ $category['link'] }}">{{ $category['name']  }}</a>
                </span>
                <h1>{{ $category['name'] }}</h1>
            </div>
            <ul class="chp clearfix">
                @foreach($articles as $article)
                    <li><a href="{{ route('home.article_view', ['article_id' => $article['id']]) }}" target="_blank">
                            <img src="{{ $article['picture'] }}" width="270" height="200"></a><p>
                            <a href="{{ route('home.article_view', ['article_id' => $article['id']]) }}" target="_blank">{{ $article['title'] }}</a>
                        </p>
                    </li>
                @endforeach
            </ul>
            <div class="pg">
                {{ $articles->links() }}
            </div>
        </div>
    </div>
@endsection